home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / graphic / egaclr2.zip / EGACLR.DOC < prev    next >
Text File  |  1986-03-03  |  8KB  |  189 lines

  1.  Part of the ENHANCER series of programs EGACLR.COM  Ver. 1.2, Feb 27, 1986
  2.  
  3.      Copyright (C)    I. B. Miller     1985, 1986
  4.  
  5.     If you find this of value and use it please send a
  6.      contribution ($25.00) suggested.
  7.  
  8.           To:  Enhancers
  9.            231 Otonabee Ave.
  10.            Willowdale, Ontario, Canada
  11.            M2M-2S9
  12.  
  13.       EGACLR is a program which Controls the seventeen palette registers on the
  14. enhanced color card ( Enhanced Graphics Adapter), 12 different user selected
  15. color combinations of any 16 of the 64 colors available can be made active by
  16. use of the Alt key at the same time as any of the number keys 1 to = at the
  17. top of the qwerty keyboard. EGACLR  changes to your set of colors whenever
  18. a video reset occurs. This defeats the revisionist tendencies of most programs
  19. which reset colors to standard and then use black and white instead of your
  20. choice of colors.  Because some programs such as LOTUS Development's drivers
  21. for 123 and Symphony use proper techniques to change colors but end up with
  22. what I and many other users consider a poor choice of colors I wrote this
  23. program to at the users option to reset colors when anyone but itself changes
  24. colors in the EGA registers. The parameter 'o' in the command line can disable
  25. the auto reset feature when another program which in your opinion does a good
  26. job of colors is run. Auto reset is then enabled at the next command given
  27. to EGACLR.
  28.  
  29.       A companion program EGACHG.COM provides a means to select 12 preset
  30. color combinations and save them in EGACLR so that they are available the
  31. next time you run EGACLR.
  32.  
  33.       The actual colors available to you depend on your actual hardware set
  34. up and so may be different. As an example if you have only a regular monitor
  35. you will have only standard colors though you will be able to swap them around.
  36. In my experience THE limiting factor for text display is the monitor. Though
  37. for graphic display memory size is  also a limiting factor.
  38.  
  39.       Note that some other programs such as SIDEKICK also work by borrowing
  40. or stealing vectors. This program and such others are usually compatible but
  41. in case of difficulty the order in which they are called up can be important
  42. as in the case of SIDEKICK where EGACLR must be called first. It must be
  43. remembered that in such cases EGACLR acheives compatability by surrendering
  44. its vector to the other and may no longer be working fully or at all. As
  45. an example POLYCOM-240 takes the keyboard unto itself to emulate a VT-100
  46. and doesn't pass keystrokes to EGACLR but when we leave POLYCOM-240 EGACLR
  47. is  again active.
  48.  
  49.  
  50.       A parameter line is also available to change the colors in <Alt 1> on
  51. the fly. Its use is described below.
  52.  
  53. Syntax is: EGACLR  r,PHH,PHH,PHH,sHH,o
  54. ----------
  55.  
  56.   r means reset to standard colors ( letter r )
  57.  
  58.   , indicates another palette color change is coming
  59.  
  60.   P is any hex digit (0-F) to indicate the desired palette register #, up to
  61.     the full 16 palette registers may be set this way.
  62.  
  63.   s means the overscan or border ( letter s ) (Not useable in enhanced mode)
  64.                            (temporarily fouls up display.)
  65.  
  66.   o means turn off the auto-resetting action ( letter o )
  67.  
  68.   HH is the color to be used (MUST be 2 HEX-digits - see below for colors -
  69.  
  70. Regular Monitor  - note that the default gives standard colors on
  71. ----------------   the enhanced monitor - you must set the high intensity
  72.            colors for the regular monitor following rules below.
  73.  
  74.      note that if you have a regular monitor the card will give regular colors
  75.      only but while 8 to F are NORMALLY high intensity versions of 0 to 7
  76.      the EGA must have a 1 put in to get high intensity.
  77.        - A is bright green on regular card but on the EGA
  78.        bright green is 1A or 12 - similar for 0E and 1E or 16 etc.
  79.  
  80.     I suspect that it has to do with the fact that when operating with
  81.      a regular monitor the card ignores bits to define other colors and just
  82.      uses those which define the standard set of 8, then it looks to the high
  83.      digit and looks only at the 1 bit to pick high intensity.
  84.  
  85. Enhanced Monitor
  86. ----------------              Hex
  87.                       ---
  88.     Bits 1 is    Medium    Blue     - 01
  89.          2 is    Medium    Green     - 02
  90.          3 is    Medium    Red     - 04
  91.          4 is Low    intensity Blue     - 08
  92.          5 is Low    intensity Green  - 10
  93.          6 is Low    intensity Red     - 20
  94.        1+4 is High    intensity Blue     - 09     Low and medium add to give
  95.        2+5 is High    intensity Green  - 12      high    - this is the basic
  96.        3+6 is High    intensity Red     - 24      principle the card works on
  97.  
  98.  
  99. Following is the standard palette color set and the numbers which describe
  100.    them
  101.  
  102.          B    B  G  C  R  M  B  W  G High intensity colors O
  103.          l    l  r  y  e  a  r  h  r --------------------- v
  104.          a    u  e  a  d  g  o  i  e    B  G  C  R  M  B  W  e
  105.          c    e  e  n     e  w  t  y    l  r  y  e  a  r  h  r
  106.          k       n        n  n  e    u  e  a  d  g  o  i  s
  107.                 t        e  e  n     e  w  t  c
  108.                 a           n        t  n  e  a
  109.                             a         n
  110.  
  111. palette No = 0    1  2  3  4  5  6  7  8    9  A  B  C  D  E  F 10
  112.                                  ^-this is the
  113.                                Seventeenth I have
  114.                              used the letter s for it
  115.                              in the program parameters.
  116.  
  117. Sample command ( Easiest to use from a batch file as remembering colors
  118. --------------                              is difficult)
  119.  
  120. Note that EGACHG.COM will set up batch files for this purpose
  121.  
  122.  
  123. EGACLR    001,212,717,916 (note that this choice is for a regular monitor)
  124.  
  125.   to set up the palettes to get decent colors with the 3278/79 emulate
  126.   card    -  change as desired to have different colors in place of standard.
  127.  
  128. This says change 0 or Black background to 01 or Blue background
  129.          2 or Dark Green       to 12 or Light Green
  130.          7 or White *           to 17 or High intensity White
  131.          9 or Light Blue **    to 16 or Light Yellow
  132.  
  133.  
  134. Disclaimer
  135. ----------
  136.      For obvious reasons the user is totally responsible for use of this
  137. program and determining that it is suitable for use by him, and he uses this
  138. program with no warranty from myself.
  139.  
  140.     It should work properly with the EGA from IBM or any card which later
  141. maintains compatibility with it
  142.  
  143.     This program is used by myself with LOTUS Development programs and works
  144. well solving a colors shift bug (or less than perfect EGA driver routine) but
  145. obviously LOTUS does not support it.
  146.  
  147. General
  148. --------
  149. The official standard color palettes are:
  150.  
  151.             0. Black        8. grey
  152.             1. Blue         9. Light Blue
  153.             2. Green        A. light Green
  154.             3. Cyan         B. Light Cyan
  155.             4. Red            C. light Red
  156.             5. Magenta        D. Light Magenta
  157.             6. Brown        E. Yellow
  158.             7. White        F. bright White
  159.  
  160.     You might want to try some of the following to replace any of the
  161. standard colors - example uses the 0 or normally Black Palette.
  162.         10 - a beautiful deep green    "EGACLR 010"
  163.         08 - a very deep blue           "EGACLR 008"
  164.         20 - a very deep red           "EGACLR 020"
  165.         34 - an orangish salmon        "EGACLR 034"
  166.         25 - a hot pink            "EGACLR 025"
  167.  
  168.     Again please note that if you have the regular monitor or the Enhanced
  169. Monitor operating in regular mode none of the above non-standard colors are
  170. available to you!
  171.  
  172.  
  173. Of Course
  174. ----------
  175.     The program EGACHG.COM will allow you to work with many colors and
  176. see them on screen interactively without any of the work involved in
  177. remembering all these numbers and color coding schemes. I believe it will
  178. make color control easy.
  179.  
  180.  
  181.        If you have any comments or suggestions please contact
  182. me either at Home in the evenings at           (416) 226-9753
  183. or at the following BBS's   PCanada(pc-1266)   (416) 751-6337
  184.                 SGV-BBS        (416) 673-0557
  185.  
  186. I am also on Compuserve as  72167,2563
  187.  
  188.                        Ivor B. Miller
  189.